jQuery.ajax({
	type : 'get',
	url : $('#mobileUrl').val(),
	complete : function(result) {
		if (typeof (result.responseText) == "string") {
			var data = JSON.parse(result.responseText);
		} else {
			var data = eval(result.responseText);
		}
		var website = $('#website').val()
		if (website.indexOf("ChinaNet") >= 0) {
			website = '中国电信';
		} else if (website.indexOf("ChinaUnicom") >= 0) {
			website = '中国联通';
		} else if (website.indexOf("ChinaMobile") >= 0) {
			website = '中国移动';
		}
		var mobileInfo = data.data;
		var useMons = '';
		if (mobileInfo.ph_USE_MONS) {
			var year = Number(mobileInfo.ph_USE_MONS);
			if (year >= 12) {
				var years = parseInt(year / 12);
				var month = year % 12;
				useMons += years + '年';
				if (month > 0) {
					useMons += month + '个月';
				}
			} else {
				useMons = year + '个月';
			}
		}
		var isRealName = '';
		if ($('#isRealNameAuth').val()) {
			switch ($('#isRealNameAuth').val()) {
			case '1':
				isRealName = '手机未认证';
				break;
			case '2':
				isRealName = '手机认证中';
				break;
			case '3':
				isRealName = '手机认证失败';
				break;
			case '4':
				isRealName = '已实名';
				break;
			case '5':
//				isRealName = '未实名<a id="doRealName">手动实名</a>';
				isRealName = '未实名';
				break;
			default:
				isRealName = '';
				break;
			}
		}
		$('#mobile').html(mobileInfo.mobile);
		$('#websiteTd').html(website);
		$('#useMons').html(useMons);
		$('#isRealName').html(isRealName);
		$('#busIdentityCard').html(mobileInfo.identityCard);
		$('#busName').html(mobileInfo.name);
		
	}
});

$('#contacts').click(function(){
	top.topManager.openPage({
		    id : 'contact',
		    href : 'business/contact?custId='+$('#custId').val(),
		    title : '通讯录'
	 })
});